
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
minimist-mini
Advanced tools
Minimist-mini is minimist simplified. Auto-generation of help using README.md (converted to text) - and easy parsing of option given to the CLI program.
A wrapper around minimist that automagically generates documentation from
your module's README.md
or readme.md
file. It reads the .md file and parses it for display in
your console application.
npm install --save minimist-mini
// Opts are the same as in minimist
// Opts are not required. You can do like this:
// var m = require('minimist-mini')();
// If you use opts then they will
// be cast as your opts are declared
// E.g.
const opts = [];
opts.boolean = ['help']; // true or false
opts.string = ['test']; // string
var m = require('minimist-mini')(opts);
// Check if test is set and log it.
var test = m.get('test');
if (test){
console.log(test);
}
// Check if help is set
// and Output README.md as txt if set
//
// You can also set a file from current path, e.g.
// 'docs/cli.md
if (m.get('help')) {
m.helpMessage();
}
MIT © Dennis Iversen
FAQs
Minimist-mini is minimist simplified. Auto-generation of help using README.md (converted to text) - and easy parsing of option given to the CLI program.
The npm package minimist-mini receives a total of 337 weekly downloads. As such, minimist-mini popularity was classified as not popular.
We found that minimist-mini demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.